package com.yang.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
public class ForntController {

    @RequestMapping(value = {"retrievePw.html","retrievePw"})
    public String retrievePw(){
        return "retrievePW";
    }

    @RequestMapping(value = {"register.html","register"})
    public String register(){
        return "register";
    }

    @RequestMapping(value = {"/","login.html","login"})
    public String login(HttpServletRequest request){
        request.getSession().invalidate();
        return "login";
    }

    @RequestMapping(value = {"admin/checkIn","admin/checkIn.html"})
    public String checkIn(){
        return "admin/checkIn";
    }

    @RequestMapping(value = {"admin/checkOut","admin/checkOut.html"})
    public String checkOut(){
        return "admin/checkOut";
    }

    @RequestMapping(value = {"admin/selectInformation","admin/selectInformation.html"})
    public String selectInformation(){
        return "admin/selectInformation";
    }

    @RequestMapping(value = {"admin/roomCondition","admin/roomCondition.html"})
    public String roomCondition(){
        return "admin/roomCondition";
    }

    @RequestMapping(value = {"admin/dataStatistics","admin/dataStatistics.html"})
    public String dataStatistics(){
        return "admin/dataStatistics";
    }

    @RequestMapping(value = {"admin/menu","admin/menu.html"})
    public String adminMenu(){
        return "admin/menu";
    }

    @RequestMapping(value = {"admin/upload","admin/upload.html"})
    public String upload(){
        return "admin/upload";
    }

    @RequestMapping(value = {"customer/menu.html","customer/menu"})
    public String customerMenu(){
        return "customer/customerMenu";
    }

    @RequestMapping(value = {"customer/myOrder","customer/myOrder.html"})
    public String myOrder(){
        return "customer/myOrder";
    }

    @RequestMapping(value = {"customer/booking","customer/booking.html"})
    public String booking(){
        return "customer/booking";
    }

    @RequestMapping(value = {"customer/roomCondition","customer/roomCondition.html"})
    public String customerRoomCondition(){
        return "customer/roomCondition";
    }
}
